package me.zhengjie.vo;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.experimental.Accessors;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class OutBoundTaskToWcsVo {
    //任务id
    private String wmsTaskId;
    //容器编码
    private String containerCode;
    //任务起点
    private String source;
    //任务终点
    private String destination;
    //优先级
    private Integer priority;
    //楼层
    private String floor;
    //配送类型1入库，2出库 3回库
    private Integer deliveryType;
    //任务类型（判断是出库，冻结）
    private String taskType;
    //物料编号，字符串拼接在一起：如("A01,A02,A03")
    private String materIalCode;

    public OutBoundTaskToWcsVo setFloor(String floor) {
        if (floor.equals("M1")){
            this.floor = "1";
            return this;
        }
        else if (floor.equals("M2")){
            this.floor = "2";
            return this;
        }
        else if (floor.equals("M3")){
            this.floor = "3";
            return this;
        }else {
            this.floor = floor;
            return this;
        }
    }
}
